package parsing;

public class LearningEntry {
	private String frenchTranslation;
	private String germanTranslation;
	public LearningEntry(String frenchTranslation, String germanTranslation) {
		super();
		this.frenchTranslation = frenchTranslation;
		this.germanTranslation = germanTranslation;
	}
	/**
	 * @return the frenchTranslation
	 */
	public String getFrenchTranslation() {
		return frenchTranslation;
	}
	/**
	 * @param frenchTranslation the frenchTranslation to set
	 */
	public void setFrenchTranslation(String frenchTranslation) {
		this.frenchTranslation = frenchTranslation;
	}
	/**
	 * @return the germanTranslation
	 */
	public String getGermanTranslation() {
		return germanTranslation;
	}
	/**
	 * @param germanTranslation the germanTranslation to set
	 */
	public void setGermanTranslation(String germanTranslation) {
		this.germanTranslation = germanTranslation;
	}
	
	public boolean tryAnswer(String answer)
	{
		if(germanTranslation.equals(answer))
			return true;
		if(germanTranslation.replace('ß', 'B').equals(answer))
			return true;
		return false;
	}
	
	
}
